package com.example.xinli.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum ResponseBeanEnum {
    SUCCESS(200, "success"),
    ERROR(500, "error"),

    // 登录模块
    LOGIN_ERROR(500210, "用户名或密码错误"),
    MOBILE_ERROR(500211, "手机号码格式错误"),
    MOBILE_NOT_EXIST(500212, "手机号码不存在"),
    PASSWORD_UPDATE_FAIL(500213, "密码更新失败"),
    SESSION_ERROR(500214, "用户名不存在");

    private final Integer code;
    private final String message;

}
